/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package types;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author efim
 */
@XmlRootElement(name = "error")
public class ErrorXML {
    
    private int code;

    /**
     * Get the value of code
     *
     * @return the value of code
     */
    public int getCode() {
        return code;
    }

    /**
     * Set the value of code
     *
     * @param code new value of code
     */
    @XmlElement
    public void setCode(int code) {
        this.code = code;
    }

    private String reason;

    /**
     * Get the value of reason
     *
     * @return the value of reason
     */
    public String getReason() {
        return reason;
    }

    /**
     * Set the value of reason
     *
     * @param reason new value of reason
     */
    @XmlElement
    public void setReason(String reason) {
        this.reason = reason;
    }

    public ErrorXML(int code, String reason) {
        this.code = code;
        this.reason = reason;
    }

}
